package managers;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Terem;

public interface TeremManager {

	public List<Terem> loadTeremLista(Workspace workspace) throws SQLException;

	public Terem insertTerem(Workspace workspace, Terem newTerem)
			throws SQLException;

	public Terem updateTerem(Workspace workspace, Terem updatedTerem)
			throws SQLException;

	public boolean deleteTerem(Workspace workspace, long userId)
			throws SQLException;

	boolean deleteTeremForTest(Workspace workspace, long userId)
			throws SQLException;
}
